/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package swym.protocol.server;

import swym.protocol.*;
import swym.server.*;

import java.io.*;
import java.net.*;

/**
 * The login message handler simply signs-in the client connection
 * (via the MessageHandler constructor), and response with a confirmation.
 * 
 * 
 * @author mschaefer
 */
public class LoginMessageHandler extends MessageHandler
{
    public LoginMessageHandler( ActionMessage message ) 
            throws MessageException
    {
        super( message );
    }
    
    /**
     * 
     * @param socket
     * @throws java.io.IOException
     */
    public void handleMessage( ClientSocket socket ) throws IOException
    {     
        writeMessage( socket, new ConfirmActionMessage( userName, 
                                                        clientName, 
                                                        requestID ) );
    }
}
